// elementUI
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ELIcons from '@element-plus/icons-vue'
import type { App } from 'vue'

export const setElement = (app: App) => {
  // 全局加载icon
  for (const name in ELIcons) {
    app.component(name, (ELIcons as any)[name])
  }
  app.use(ElementPlus)
}
